<?php
/**
 * Created by PhpStorm.
 * User: Mo
 * Date: 15-6-5
 * Time: 下午4:15
 */

require_once base_path('includes/rb.php');

class RB extends R {
    static $inited;
    /**
     *
     */
    public static  function init(){
        if(!isset(self::$inited)){
            self::$inited = R::setup("mysql:host={$_ENV['DB_HOST']};dbname={$_ENV['DB_DATABASE']}",$_ENV['DB_USERNAME'],$_ENV['DB_PASSWORD']);
         }

    }
}
